<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2021/1/5
  Time: 3:37 下午
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<link rel="stylesheet" type="text/css" href="/mvc/css/common/nav.css">
<%--   导航begin...--%>
<div class="container-fluid">
    <div class="row">
        <nav class="navbar navbar-inverse" role="navigation">
            <div class="container-fluid">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse"
                            data-target="#example-navbar-collapse">
                        <span class="sr-only">切换导航</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <style type="text/css">
                        .navbar-brand{
                            font-size: 28px;
                            min-height: 30px;
                            margin-bottom: 0;
                            border-radius: 0;
                        }
                    </style>
                    <a class="navbar-brand" href="#" style="color: lightsalmon">LABOR直聘</a>
                </div>
                <div class="collapse navbar-collapse" id="example-navbar-collapse">
                    <ul class="nav navbar-nav navbar-right">
                        <%--<li class="active"><a href="#">个人中心</a></li>--%>
                        <c:if test="${user==null}">
                            <li><a href="#">上传简历</a></li>
                            <li><a href="#">我要找工作</a></li>
                            <li><a href="#">我要招聘</a></li>
                            <li><a href="/mvc/user/login" id="nav_btn">注册</a></li>
                            <li><a href="/mvc/user/login" id="nav_btn">登录</a></li>
                        </c:if>
                        <c:if test="${user!=null}">
                            <li class="active"><a href="#">${user.username}</a></li>
                            <%--<li class="active"><a href="http://localhost:8088/mvc/user/jianli">个人中心</a></li>--%>
                            <li><a href="/mvc/user/login/">消息</a></li>
                            <li><a href="#">上传·简历</a></li>
                            <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                    我的 <b class="caret"></b>
                                </a>
                                <ul class="dropdown-menu">
                                    <li><a href="/mvc/user/jianli">个人中心</a></li>
                                    <li class="divider"></li>
                                    <li><a href="#">账号设置</a></li>
                                    <li class="divider"></li>
                                    <li><a href="#">隐私设置</a></li>
                                    <li class="divider"></li>
                                    <li><a href="#">求职助手</a></li>
                                    <li class="divider"></li>
                                    <li><a href="#">切换为招聘者</a></li>
                                    <li class="divider"></li>
                                    <li><a href="/mvc/user/exit">退出登录</a></li>
                                </ul>
                            </li>
                            <li><img src="/mvc/imgs/zly.jpg" id="nav_header"></li>
                            <%--<li><img src="/mvc/imgs/zly.jpg" id="nav_header"></li>--%>
                        </c:if>
                    </ul>
                    <ul class="nav navbar-nav navbar-left">
                        <li><a href="/mvc/firsts" style="color: lightsalmon">首页</a></li>
                        <li><a href="/mvc/recruitinfo/jobsearch">职位</a></li>
                        <li><a href="/mvc/workinfor/comp">公司</a></li>
                        <li><a href="/mvc/product/index">发现</a></li>
                        <li><a href="https://app.zhipin.com/?ka=header-app">APP</a></li>
                    </ul>
                </div>
            </div>
        </nav>
    </div>
</div>
<%--    导航end ..--%>
